﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CourseEntryModule.ascx.cs"
    Inherits="ChapterX.Modules.CourseEntryModule" %>

<%@ Import Namespace="ChapterX.Common" %>


<%@ Register Src="~/Modules/CourseBookListModule.ascx" TagName="CourseBookList" TagPrefix="Module" %>
<%@ Register Src="~/Modules/UploadsModule.ascx" TagName="Uploads" TagPrefix="Module" %>

<link type="text/css" rel="Stylesheet" href="/css/entry.css" />
<script type="text/javascript" src="/js/entry.js"></script>

<style type="text/css">
    .style1
    {
        height: 36px;
    }
</style>

<form id="CourseEntryForm" runat="server">
<div class="form-wrapper ui-widget ui-widget-content ui-corner-all">
    <div class="form-header ui-widget-header ui-corner-all">
        <span>课程信息</span>
    </div>
    <asp:HiddenField ID="Field_CourseId" runat="server" />
    <div class="form-content">
        <table border="0" cellpadding="0" cellspacing="0" class="entry">
            <tbody>
            <tr>
                <td>*&nbsp;课程号：</td>
                <td><asp:TextBox ID="Field_CourseNumber" runat="server" MaxLength="32"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_CourseNumber" runat="server" ControlToValidate="Field_CourseNumber" ErrorMessage="请填写课程号" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>*&nbsp;课程名称：</td>
                <td><asp:TextBox ID="Field_CourseName" runat="server" MaxLength="512"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_CourseName" runat="server" ControlToValidate="Field_CourseName" ErrorMessage="请填写课程名称" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>开课系别：</td>
                <td><asp:TextBox ID="Field_Department" runat="server" MaxLength="128"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>开课时间：</td>
                <td><asp:TextBox ID="Field_Semester" runat="server" MaxLength="128"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="style1">课程对象：</td>
                <td class="style1">
                    <asp:RadioButtonList ID="Field_Audience" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                </td>
                <td class="style1"></td>
            </tr>
            <tr>
                <td>课程学分：</td>
                <td><asp:TextBox ID="Field_Credit" runat="server" MaxLength="4"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>考核方式：</td>
                <td><asp:TextBox ID="Field_Assessment" runat="server" MaxLength="4"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>计划人数：</td>
                <td><asp:TextBox ID="Field_Volume" runat="server" MaxLength="4"></asp:TextBox></td>
                <td>&nbsp;</td>
            </tr>
            <tr id="Row_TeacherId" runat="server">
                <td>*&nbsp;教师ID：</td>
                <td><asp:TextBox ID="Field_TeacherId" runat="server" MaxLength="64"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="Validator_TeacherId" runat="server" ControlToValidate="Field_TeacherId" ErrorMessage="请填写教师ID" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Button ID="Submit" runat="server" CssClass="form-button" Text="保存" OnClick="Submit_Click" />
                    <asp:Button ID="Delete" runat="server" CssClass="form-button" Text="删除" OnClick="Delete_Click" />
                </td>
                <td>&nbsp;</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<div>
    <asp:DropDownList ID="UnboundBookList" runat="server">
    </asp:DropDownList>
    <asp:Button ID="BindBook" runat="server" CssClass="form-button" Text="绑定教材" 
        onclick="BindBook_Click" />
</div>

<!-- 课程教材信息-->
<div class="form-wrapper ui-widget ui-widget-content ui-corner-all">
    <div class="form-header ui-widget-header ui-corner-all">
        <span>课程教材</span>
    </div>
    <label runat="server" ID="label_DataTip"></label> 
    <Module:CourseBookList ID="Module_CourseBookList" runat="server" DataNavigateUrl="~/Auth/Teacher/BookEntry.aspx" />

</div>
<!-- 课程其它资料-->

<div class="form-wrapper ui-widget ui-widget-content ui-corner-all">
    <div class="form-header ui-widget-header ui-corner-all">
        <span>课程其它资料</span>
    </div>
    本课程暂时没有附件
    <Module:Uploads ID="Module_Uploads" runat="server" />   
</div>
</form>